package Box2D.Common
{
	import cmodule.Box2DWrap.CLibInit;
	import cmodule.Box2DWrap.MemUser;

	public class b2Base
	{		
		private var _loader:CLibInit;
		private var _lib:Object;
		private var _mem:MemUser;
		private var _struct:Ib2Struct
		public function b2Base(){
			_loader = new CLibInit;
			_lib = _loader.init();
			_mem = new MemUser;
		}
		public function release():void{
			_loader = null;
			_lib = null;
		}
		public function get lib():Object{return _lib}
		public function get mem():MemUser{return _mem}
		public function get struct():Ib2Struct{return _struct}
		public static var impl:b2Base = new b2Base;
	}
}